package net.sxjr.mbg.entity;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 小部件
 * </p>
 *
 * @author cuixc
 * @since 2020-12-10
 */
public class JbdpPortlet extends Model<JbdpPortlet> {

    private static final long serialVersionUID=1L;

    /**
     * 部件主键
     */
    @TableId("PORTLET_ID")
    private String portletId;

    /**
     * 名称
     */
    @TableField("PORTLET_NAME")
    private String portletName;

    /**
     * URL
     */
    @TableField("URL")
    private String url;

    /**
     * 图标
     */
    @TableField("ICON")
    private String icon;

    /**
     * 状态
     */
    @TableField("STATE")
    private Integer state;

    /**
     * 部件高度
     */
    @TableField("HEIGHT")
    private Integer height;


    public String getPortletId() {
        return portletId;
    }

    public JbdpPortlet setPortletId(String portletId) {
        this.portletId = portletId;
        return this;
    }

    public String getPortletName() {
        return portletName;
    }

    public JbdpPortlet setPortletName(String portletName) {
        this.portletName = portletName;
        return this;
    }

    public String getUrl() {
        return url;
    }

    public JbdpPortlet setUrl(String url) {
        this.url = url;
        return this;
    }

    public String getIcon() {
        return icon;
    }

    public JbdpPortlet setIcon(String icon) {
        this.icon = icon;
        return this;
    }

    public Integer getState() {
        return state;
    }

    public JbdpPortlet setState(Integer state) {
        this.state = state;
        return this;
    }

    public Integer getHeight() {
        return height;
    }

    public JbdpPortlet setHeight(Integer height) {
        this.height = height;
        return this;
    }

    @Override
    protected Serializable pkVal() {
        return this.portletId;
    }

    @Override
    public String toString() {
        return "JbdpPortlet{" +
        "portletId=" + portletId +
        ", portletName=" + portletName +
        ", url=" + url +
        ", icon=" + icon +
        ", state=" + state +
        ", height=" + height +
        "}";
    }
}
